﻿using System.ComponentModel.DataAnnotations;

namespace Vue.Admin.Models
{
	/// <summary>
	/// 
	/// </summary>
	public class RolesDto
	{
		/// <summary>
		/// 主键自增id
		/// </summary>
		public int FID { get; set; }
		/// <summary>
		/// 父级id
		/// </summary>
		[Required(ErrorMessage =@"父级id不可为空")]
		public int FParentID { get; set; }
		/// <summary>
		/// 角色名
		/// </summary>
		[Required(ErrorMessage ="角色名不可为空")]
		public string FName { get; set; }
		/// <summary>
		/// 排序
		/// </summary>
		[Required(ErrorMessage ="排序字段不可为空")]
		public int FSort { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		public string FRemark { get; set; }
	}
}

